package de.eridea.learning.java.usermanagement.logic.pwdverification;


public class Identity implements PasswordHashFunction {

	private final String identifier = "tag:frabru.de,2011:pwdhashfunction:copy";
	public String getIdentifier() {
		return identifier;
	}

	public PasswordDigest digest(Password password) {
		PasswordDigest result = new PasswordDigest(getIdentifier(), String.valueOf(password.getCharacters()));
		password.erase();
		return result;
	}

}
